Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work towards supporting tree node filtering in MSTest #4905

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Feb 3, 2025

Fixes #4293

// NOTE: Implementation is borrowed from VSTest
// MSTest relies on this method existing and access it through reflection: https://github.com/microsoft/testfx/blob/main/src/Adapter/MSTest.TestAdapter/TestMethodFilter.cs#L115
public ITestCaseFilterExpression? GetTestCaseFilter(
IEnumerable<string>? supportedProperties,
Func<string, TestProperty?> propertyProvider)
{
if (TreeNodeFilter is not null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: We can either say that VSTest's filter and tree node filter are not supported together at the same time, or we can create a new CompoundTestCaseFilterExpression which takes the two ITestCaseFilterExpression and does && between them.

Putting this comment as a reminder, but let's first finalize something that works first then get back to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AddTreeNodeFilterService is not called by MSTest
1 participant